﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AreaManage_Edit.aspx.cs"
    Inherits="BaseData_AreaManage_Edit" %>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>部门编辑</title>
    <base target="_self" />
    <link rel="stylesheet" href="../css/css.css" type="text/css" />
    <link rel="stylesheet" href="../css/DropDownList.css" type="text/css" />

    <script src="../JS/DropDownList.js" type="text/javascript"></script>

    <!--#include file="../JS/TrimData.js"-->
</head>
<body leftmargin="0" rightmargin="0" topmargin="0" style="background-image: url('../images/hit_bg.gif');">
    <% 
        Response.ExpiresAbsolute = System.DateTime.Now.AddSeconds(-1);
        Response.Expires = 0;
        Response.CacheControl = "no-cache";
    %>
    <form id="form1" method="post" runat="server">
        <br />
        <br />
        <table width="95%" border="1" align="center" cellpadding="0" cellspacing="0" class="tablelb"
            style="border-collapse: collapse;">
            <tr style="height: 26px;">
                <td style="width: 15%; background-color: #ECF4FD" class="tableleft" align="right">
                    上级区域&nbsp;</td>
                <td style="width: 35%; background-color: #ECF4FD" class="tableleft">
                    <asp:DropDownList ID="ddlRegionid" TabIndex="1" DataValueField="ID" DataTextField="sName"
                        runat="server">
                    </asp:DropDownList></td>
                <td style="width: 15%; background-color: #ECF4FD" class="tableleft" align="right">
                    区域名称&nbsp;</td>
                <td style="width: 35%; background-color: #ECF4FD" class="tableleft">
                    <asp:TextBox ID="AreaName" Width="200" runat="server" TabIndex="2" MaxLength="50"></asp:TextBox><asp:Label
                        ID="tishi1" runat="server" Text="*" ForeColor="Red"></asp:Label></td>
            </tr>
            <tr style="height: 26px;">
                <td style="width: 15%; background-color: #ECF4FD" class="tableleft" align="right">
                    大区域&nbsp;</td>
                <td style="width: 35%; background-color: #ECF4FD" class="tableleft">
                    <asp:DropDownList ID="ddlLargeArea" TabIndex="3" runat="server">
                    </asp:DropDownList></td>
                <td style="width: 15%; background-color: #ECF4FD" class="tableleft" align="right">
                    主设备1&nbsp;</td>
                <td style="width: 35%; background-color: #ECF4FD" class="tableleft">
                    <asp:DropDownList ID="ddlEquipment1" TabIndex="3" runat="server">
                    </asp:DropDownList></td>
            </tr>
            <tr style="height: 26px;">
                <td style="width: 15%; background-color: #ECF4FD" class="tableleft" align="right">
                    主设备2&nbsp;</td>
                <td style="width: 35%; background-color: #ECF4FD" class="tableleft">
                    <asp:DropDownList ID="ddlEquipment2" TabIndex="3" runat="server">
                    </asp:DropDownList></td>
                <td style="width: 15%; background-color: #ECF4FD" class="tableleft" align="right">
                    主设备3&nbsp;</td>
                <td style="width: 35%; background-color: #ECF4FD" class="tableleft">
                    <asp:DropDownList ID="ddlEquipment3" TabIndex="3" runat="server">
                    </asp:DropDownList></td>
            </tr>
            <tr style="height: 26px;">
                <td style="width: 15%; background-color: #ECF4FD" class="tableleft" align="right">
                    相邻区域&nbsp;</td>
                <td style="width: 35%; background-color: #ECF4FD" class="tableleft">
                    <!--区域下拉框（呈现属性的多选列表）START-->
                    <div id="sltArea" runat="server" style="float: left;" onmouseover="ShowMList('divCheckBoxList','divCheckBoxListClose');"
                        onmouseout="HideMList('divCheckBoxList','divCheckBoxListClose');">
                        <table>
                            <tr>
                                <td align="right" class="DropDownLook">
                                    <input id="txtArea" type="text" readonly="readonly" onclick="ShowMList('divCheckBoxList','divCheckBoxListClose')"
                                        style="width: 229px;" runat="server" />
                                </td>
                                <td align="left" class="DropDownLook">
                                    <img alt="" id="imgShowHide" runat="server" src="../Images/drop.gif" onclick="ShowMList('divCheckBoxList','divCheckBoxListClose')"
                                        align="left" />
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2" class="DropDownLook">
                                    <div>
                                        <div runat="server" id="divCheckBoxListClose" class="DivClose">
                                            <label runat="server" onclick="HideMList('divCheckBoxList','divCheckBoxListClose');"
                                                class="LabelClose" id="lblClose">
                                                关闭
                                            </label>
                                        </div>
                                        <div runat="server" id="divCheckBoxList" class="DivCheckBoxList">
                                            <asp:CheckBoxList ID="lstArea" runat="server" Width="250px" CssClass="CheckBoxList">
                                            </asp:CheckBoxList>
                                        </div>
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </div>
                </td>
                <td style="width: 15%; background-color: #ECF4FD" class="tableleft" align="right">
                    缩写&nbsp;</td>
                <td style="width: 35%; background-color: #ECF4FD" class="tableleft">
                    <asp:TextBox ID="PinYin" Width="200" runat="server" TabIndex="10" MaxLength="50"></asp:TextBox></td>
            </tr>
        </table>
        <table width="95%" border="0" cellpadding="5" cellspacing="0" align="center">
            <tr>
                <td width="20%">
                </td>
                <td>
                    <input id="GrantBtn1" type="submit" runat="server" class="button03" tabindex="8"
                        value="提交(S)" accesskey="s" onserverclick="GrantBtn1_ServerClick" />
                    &nbsp;&nbsp;
                    <input type="button" id="backBtn" value="关闭(C)" accesskey="c" class="button03" tabindex="9"
                        onclick="window.close();" /></td>
            </tr>
        </table>
        <input type="hidden" id="HAreaID" runat="server" />
        <input type="hidden" id="hOrgID1" runat="server" />
        <input type="hidden" id="hNewOrgID1" runat="server" />
        <input type="hidden" id="hOldOrgName" runat="server" />
        <input type="hidden" id="hOldParentID1" runat="server" />
        <input type="hidden" id="hNewParentID1" runat="server" />
        <input type="hidden" id="hidEditType" runat="server" />
        <input type="hidden" id="hEffective" runat="server" />
        <input type="hidden" id="hPersID1" runat="server" />
        <input type="hidden" id="NewPersID1" runat="server" />
        <input type="hidden" id="HOrgType" runat="server" />
        <input type="hidden" id="hParentChildIDCol" runat="server" />
    </form>

    <script language="javascript" type="text/javascript">
    <!--
      var sData = dialogArguments;
      var sobj = sData.OrgForm.Hcode.value;  
      form1.hidEditType.value = sData.stype;
      var ary=sobj.split('|');
      if(sData.stype == "2")  // 2 修改 1 新建
      {
        form1.HAreaID.value = trim(ary[0]);
        form1.AreaName.value = trim(ary[1]);
        form1.ddlRegionid.value = trim(ary[2]);
     }
     else
     {
        if(trim(ary[0]) == "")
        {
            form1.ddlRegionid.value = "0";
        }
        else
        {
            form1.ddlRegionid.value = trim(ary[0]);
        }
     }
   -->
    </script>

</body>
</html>
